package com.sc.nft.entity.dto;


import com.sc.nft.enums.PropsRelationTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


@Data
public class AddActivityPropsConfDTO {


    @ApiModelProperty("条件名称")
    private String relationName;

    @ApiModelProperty("条件类型")
    @NotNull(message = "条件类型不能为空")
    private PropsRelationTypeEnum relationType;

    @ApiModelProperty("条件id")
    private Long relationId;

    @ApiModelProperty("消耗数量")
    @DecimalMin(value = "0.01", message = "消耗数量最小为0.01")
    @DecimalMax(value = "99999.99", message = "消耗数量最大为99999.99")
    @NotNull(message = "消耗数量不能为空")
    private BigDecimal costCount;


}